<?php
// Copyright 2009 Oy Site Logic Ab
// 
// This file is part of a program, that is distributed
// under the terms of the GNU General Public License,
// see license.txt for details.

defined( '_JEXEC' ) or die( 'Restricted access' );
global $mosConfig_absolute_path, $mainframe, $palvelutiski_googleApiKey;
require_once(JPATH_SITE .DS.'components/com_palvelutiski/configuration.php');

$mainframe->addCustomHeadTag('<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key='.$palvelutiski_googleApiKey.'&hl=fi" type="text/javascript"></script>');
//18.03.2009 - Loaded at an earlier point to avoid conflicts with the mootools library - leif@sitelogic.fi
//$mainframe->addCustomHeadTag('<script src="components/com_dpposition/js/OpenLayers.js" type="text/javascript"></script>');
$mainframe->addCustomHeadTag('<script src="components/com_dpposition/js/OpenLayers.Click.js" type="text/javascript"></script>');
$mainframe->addCustomHeadTag('<script src="components/com_dpposition/js/OLDPPositionStyle.js" type="text/javascript"></script>');
$mainframe->addCustomHeadTag('<script src="components/com_dpposition/js/OLDPPositionMap.js" type="text/javascript"></script>');
$mainframe->addCustomHeadTag('<script src="components/com_dpposition/js/OLDPPositionMap.Google.js" type="text/javascript"></script>');
//$mainframe->addCustomHeadTag('<script src="components/com_dpposition/js/OLDPPositionMap.HEL.js" type="text/javascript"></script>');
$mainframe->addCustomHeadTag('<script src="components/com_mapedit/mapedit.js" type="text/javascript"></script>');
$mainframe->addCustomHeadTag('<link href="components/com_mapedit/mapedit.css" rel="stylesheet" type="text/css" />');
	
?>